<Window x:Class="NLarge.AboutNLarge"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:settings="clr-namespace:NLarge.Properties"
    xmlns:nlargeCC="clr-namespace:NLarge.CustomConverters"
    Title="NLarge" Height="550" Width="400"
    WindowStyle="SingleBorderWindow"
    ResizeMode="NoResize" WindowStartupLocation="CenterScreen"
    Closed="OnClosed"
    x:Name="Window" 
        xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
        xmlns:local="clr-namespace:NLarge"
    >
    <Window.Resources>
        <settings:Settings x:Key="Settings" />
        <nlargeCC:TimeSpanToDoubleConverter x:Key="TimeSpanToDoubleConverter" />
        <Storyboard x:Key="OnLoaded" d:StoryboardName="OnLoaded">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(ScaleTransform.ScaleX)" Storyboard.TargetName="NLargeDesc">
                <SplineDoubleKeyFrame d:KeyEase="Linear;Linear;0.5;0.5;0.5;0.5" KeySpline="0.5,0.5,0.5,0.5" Value="1" KeyTime="00:00:00.6670000"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(ScaleTransform.ScaleY)" Storyboard.TargetName="NLargeDesc">
                <SplineDoubleKeyFrame d:KeyEase="Linear;Linear;0.5;0.5;0.5;0.5" KeySpline="0.5,0.5,0.5,0.5" Value="1" KeyTime="00:00:00.6670000"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="NLargeDesc">
            <BeginStoryboard Storyboard="{StaticResource OnLoaded}" x:Name="OnLoaded_BeginStoryboard"/>
        </EventTrigger>
    </Window.Triggers>
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.583*" />
            <RowDefinition Height="0.386*" />
            <RowDefinition Height="0.081*" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" TextWrapping="Wrap" Padding="5,5,5,5" x:Name="NLargeDesc" RenderTransformOrigin="0.5,0.5" xml:space="preserve" >
        <TextBlock.RenderTransform>
				<TransformGroup>
					<TranslateTransform X="0" Y="0"/>
					<ScaleTransform ScaleX="0.3" ScaleY="0.3"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="0"/>
				</TransformGroup>
	</TextBlock.RenderTransform><Bold>NLarge v1.1.3</Bold><LineBreak /><Bold>Rob Burke</Bold><LineBreak /><Hyperlink Click="OpenBlog"> http://www.codeplex.com/NLarge/ </Hyperlink><LineBreak /><LineBreak /><Bold>Zoom Toggle: </Bold><local:HotkeyTextBox Width="150" VerticalAlignment="Center" 
                         ModifierKeys="{Binding Source={StaticResource Settings}, Path=Default.ZoomModifier, Mode=TwoWay}"
                         Key="{Binding Source={StaticResource Settings}, Path=Default.ZoomKey, Mode=TwoWay}" />
Zoom in with the mouse wheel or up and down arrow keys. Exit zoom mode with Escape or by pressing the right mouse button.<LineBreak /><LineBreak /><Bold>Draw without Zoom:</Bold><local:HotkeyTextBox Width="150" VerticalAlignment="Center" 
                         ModifierKeys="{Binding Source={StaticResource Settings}, Path=Default.DrawModifier, Mode=TwoWay}"
                         Key="{Binding Source={StaticResource Settings}, Path=Default.DrawKey, Mode=TwoWay}" />            
In zoom mode, press the left mouse button or use a tablet PC pen to draw. Erase by pressing 'E'. Unlock transform with 'C'.<LineBreak /><LineBreak /><Bold>Break Timer:</Bold><local:HotkeyTextBox Width="150" VerticalAlignment="Center" 
             ModifierKeys="{Binding Source={StaticResource Settings}, Path=Default.TimerModifier, Mode=TwoWay}"
             Key="{Binding Source={StaticResource Settings}, Path=Default.TimerKey, Mode=TwoWay}" />
Increase and decrease time with the up and down arrow keys. Exit break mode with Escape.<LineBreak /></TextBlock>
        <Button Grid.Row="2" x:Name="OKButton" Click="CloseAboutWindow" Content="OK" IsDefault="True" IsCancel="True"  />
        <TabControl Grid.Row="1">
            <TabItem Header="Zoom">
                <StackPanel>
                    <Grid x:Name="GridZoomSpeed">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <Label Grid.ColumnSpan="3" x:Name="LabelZoomSpeed" Content="Zoom Speed" Width="344" Height="25.96" FontWeight="Bold"/>
                        <Slider Grid.Row="1" Grid.ColumnSpan="3" x:Name="SliderZoomSpeed" TickPlacement="BottomRight" TickFrequency="0.05" Maximum="0.95" SmallChange="0.05" LargeChange="0.1" Minimum="0.35" IsSnapToTickEnabled="True" 
                        Value="{Binding Source={StaticResource Settings}, Path=Default.ZoomSpeed}"
                            />
                        <Label Grid.Row="2" x:Name="LabelFaster" Content="Faster"/>
                        <Label Grid.Row="2" Grid.Column="1" x:Name="LabelDefaultZoomSpeed" HorizontalContentAlignment="Center" Focusable="True">
                            <Hyperlink Click="ZoomSpeedToDefault">Default</Hyperlink>
                        </Label>
                        <Label Grid.Row="2" Grid.Column="2" DockPanel.Dock="Right" x:Name="LabelSlower" Content="Slower" HorizontalContentAlignment="Right"/>

                    </Grid>
                    <Grid x:Name="GridZoomDepth">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <Label Grid.ColumnSpan="3" x:Name="LabelZoomDepth" Content="Zoom Depth" Width="344" Height="25.96" FontWeight="Bold"/>
                        <Slider Grid.Row="1" Grid.ColumnSpan="3" x:Name="SliderZoomDepth" IsSnapToTickEnabled="True" TickPlacement="BottomRight" TickFrequency="0.5" Maximum="4" SmallChange="0.5" LargeChange="1" Minimum="1.5"  
                Value="{Binding Source={StaticResource Settings}, Path=Default.ZoomDepth}"
                />
                        <Label Grid.Row="2" x:Name="LabelLess" Content="Less"/>
                        <Label Grid.Row="2" Grid.Column="1" x:Name="LabelDefaultZoomDepth" HorizontalContentAlignment="Center" Focusable="True">
                            <Hyperlink Click="ZoomDepthToDefault">Default</Hyperlink>
                        </Label>
                        <Label Grid.Row="2" Grid.Column="2" DockPanel.Dock="Right" x:Name="LabelMore" Content="More" HorizontalContentAlignment="Right"/>
                    </Grid>


                </StackPanel>

            </TabItem>
            <TabItem Header="Drawing pen">
                <StackPanel>
                    <Grid x:Name="GridPenWidth">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2">
                            <Label Grid.ColumnSpan="3" Content="Pen Width " Height="25.96" FontWeight="Bold"/>
                            <Label Content="{Binding Path=Default.PenWidth, Source={StaticResource Settings}}" Height="25.96" />
                            <Label Content=" Pixels" Height="25.96" />
                        </StackPanel>
                        <Slider Grid.Row="1" Grid.ColumnSpan="3" x:Name="SliderPenWidth" TickPlacement="BottomRight" TickFrequency="0.5" Maximum="15" SmallChange="0.1" LargeChange="0.5" Minimum="0.5" IsSnapToTickEnabled="True" 
                        Value="{Binding Source={StaticResource Settings}, Path=Default.PenWidth, Mode=TwoWay}"
                            />
                        <Label Grid.Row="2" Content="Thinner"/>
                        <Label Grid.Row="2" Grid.Column="1" HorizontalContentAlignment="Center" Focusable="True">
                            <Hyperlink x:Name="ClickWidthHyperLink" Click="PenWidthToDefault">Default</Hyperlink>
                        </Label>
                        <Label Grid.Row="2" Grid.Column="2" DockPanel.Dock="Right" Content="Thicker" HorizontalContentAlignment="Right"/>

                    </Grid>
                    <TextBlock Margin="8,8,8,8" TextWrapping="Wrap" Width="344" Text="While drawing, press 'R' (red), 'G' (green), 'B' (blue), 'O' (orange) or 'Y' (yellow) to change drawing colour. 'W' for a blank canvas.  Create a text block at the mouse pointer with 'T'." />

                </StackPanel>

            </TabItem>
            <TabItem Header="Break Timer">
            	<StackPanel Width="374" Height="154.864">
            		<Grid x:Name="GridZoomSpeed1">
            			<Grid.ColumnDefinitions>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            			</Grid.ColumnDefinitions>
            			<Grid.RowDefinitions>
            				<RowDefinition/>
            				<RowDefinition/>
            				<RowDefinition/>
            			</Grid.RowDefinitions>
                        <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2">
                            <Label x:Name="LabelZoomSpeed1" Content="Break Time " Height="25.96" FontWeight="Bold"/>
                            <Label Content="{Binding Path=Default.BreakTimeSpan, Source={StaticResource Settings}, Converter={StaticResource TimeSpanToDoubleConverter}}" Height="25.96" />
                            <Label Content=" Minutes" Height="25.96" />
                        </StackPanel>
            			<Slider Grid.Row="1" Grid.ColumnSpan="3" x:Name="SliderZoomSpeed1" TickPlacement="BottomRight" TickFrequency="5" Maximum="60" SmallChange="5" LargeChange="10" Minimum="0" IsSnapToTickEnabled="True" 
            				Value="{Binding Path=Default.BreakTimeSpan, Source={StaticResource Settings}, Converter={StaticResource TimeSpanToDoubleConverter}, Mode=TwoWay}"
                            />
            			<Label Grid.Row="2" x:Name="LabelFaster1" Content="Shorter"/>
            			<Label Grid.Row="2" Grid.Column="1" x:Name="LabelDefaultZoomSpeed1" HorizontalContentAlignment="Center" Focusable="True">
            				<Hyperlink Click="BreakTimeSpanToDefault"><Run Text="Default"/></Hyperlink>
            			</Label>
            			<Label Grid.Row="2" Grid.Column="2" DockPanel.Dock="Right" x:Name="LabelSlower1" Content="Longer" HorizontalContentAlignment="Right"/>

            		</Grid>
            		<Grid x:Name="GridZoomDepth1">
            			<Grid.ColumnDefinitions>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            			</Grid.ColumnDefinitions>
            			<Grid.RowDefinitions>
            				<RowDefinition/>
            				<RowDefinition/>
            				<RowDefinition/>
            			</Grid.RowDefinitions>
            			<Label Grid.ColumnSpan="3" x:Name="LabelZoomDepth1" Content="Timer Opacity" Width="344" Height="25.96" FontWeight="Bold"/>
            			<Slider Grid.Row="1" Grid.ColumnSpan="3" x:Name="SliderZoomDepth1" IsSnapToTickEnabled="True" TickPlacement="BottomRight" TickFrequency="0.1" Maximum="1.0" SmallChange="0.1" LargeChange="0.2" Minimum="0.2"  
            				Value="{Binding Path=Default.BreakTimerOpacity, Source={StaticResource Settings}}"
                />
            			<Label Grid.Row="2" x:Name="LabelLess1" Content="Less Visible"/>
            			<Label Grid.Row="2" Grid.Column="1" x:Name="LabelDefaultZoomDepth1" HorizontalContentAlignment="Center" Focusable="True">
            				<Hyperlink Click="BreakTimerOpacityToDefault"><Run Text="Default"/></Hyperlink>
            			</Label>
            			<Label Grid.Row="2" Grid.Column="2" DockPanel.Dock="Right" x:Name="LabelMore1" Content="More Visible" HorizontalContentAlignment="Right"/>
            		</Grid>


            	</StackPanel>
            </TabItem>

        </TabControl>


    </Grid>
</Window>
